for multiple timesteps