add motor speed control