refraction works