removed global variables in get_references.py