more math library work
apparently working 32bit arithmetic