update function gcd for no argument