specially adapted for motors rotating in both directions