corrects gt and lt