added trig lookup