moved term getting into a term getter file