removed duplicate keys in hash