turned off residual photon energy correction part