added time step functions