updated maths library