added function to extract all uses of a given term