fix my math and formatting