added most of the debug statements for symbol table