adding gcd