added theta to be fabs(cossq).. a little weird will talk to fede