using math library