inspecting duplicate keys