photon purity part debugged