implemented hashtable in the parser