almost done correcting timestep error