added hashtable functions