gcd corrected