need to fix the GCD input parsing problem.