edited code for new stepper