cleaning up label handling code / prototype for base type
cleaning up symbol table