added refraction