use of updateSteps, fixed small bug