changed sketch for stepper motor