add base math and render class for render