theta compiling and working, accuracy still to be fully tested