trig functions added