modify leapfrog integration method