added comments and reasoning for symbol table method