modify GCD