adds the function to tag addresses refs but still bad code and no test and comments #2513