full support for finding variables that have been declared multiple times