On a method to improve the calculation of the coulomb correction in bremsstrahlung and pair production processes