added remove hash function