for controlling the direction of rotation of DC motors