used step instead of curStep - resulted in wrong timestamps