refraction still has problems