made a fix to the integrator