add function-remove hash table if the key is used