added theta calculations and theta tests