cleanup, put this exception in the math module