prettified step output
added overflow error to avoid infinite gcd calculation