getting rid of singularities in photon bg integral