fixing math problems