correct timestep math