adding photon regression