added functions to iterate through hash table and remove hash entries