added next on next step function