modified code to work with new symbol table implementation