handle special cases when findGCD returns 1