working on motor stepper function