add math and code