implementing lokcing hashtable functions
implementing lokcing hashtable functions