adding speed control