math library works