removing gcd