added trig measure and filehelper