remove photon implementation