added setTheta