working version with divided time step