added recursively searching the symbol table