cleanup maths