remove duplicate keys