added missing math and TCS stuff