new version of hash remove dup