small change to integrator