adding in more trig computations