added case for no exponent