fix trig method