added print function for symtable