more changes to attempt to fix problem with refraction