rewrote two step sequence to allow speed control