fix error in hashing and remove