debugging math and printing results