checking the maths