refactoring of var finder to make it useable as an annotator