add option for fixed time step