a cutoff distance of 1e-10 from the edges  is imposed on all variables used in double real emission with subtraction