modification of the motor into 2 directions