some small corrections to photon position used