Adding some adjustments to pairproduction check in gamma loop