hand coded stepper routines