getting the math sorted out