From quark stars to hybrid stars