Left and right servo need to rotate in the same direction

Hi, I am new here and hope this is the correct section to drop my question.

I have an Arduino nano every with a Adafruit_PWMServoDriver.

The issue I am facing is that the "Main servos" (see sketch) are mounted opposite, one of them rotates opposite due to its mounting position. I would like to have them turn into the same direction. Need to flip turning direction of one servo. Can someone point out where i am making a mistake?

      //MAIN SERVOS
      for (uint16_t microsec = 1000; microsec < 2000; microsec +=3) {
        pwm.writeMicroseconds(mainServoL, microsec);
        pwm.writeMicroseconds(mainServoR, (2000+1000 -microsec));
      }
      globalPos = 0;
    } else {
      Serial.println("Closing");
      //MAIN SERVOS
      for (uint16_t microsec = 2000; microsec > 1000; microsec-=3) {
        pwm.writeMicroseconds(mainServoL, microsec);
        pwm.writeMicroseconds(mainServoR, (2000+1000 -microsec));
      }
      //delay(100);
      /*
      for (uint16_t pulselen = 2; pulselen <= 90; pulselen++) {
        pwm.setPWM(5, 0, getAngleToPulse(pulselen));

The posted code fragment already instructs the servos to move to complementary angles in steps, that is, move in opposite directions, but a delay() appears to be missing. Did you write that program?

Please explain what you expect the program/servos to do, and what they do instead.

Sorry, I just have fixed it. It wasn't the code. Thanks for the reply.