fix timestep code to a fixed time slice