initial refraction working