fixing math