cleanup double entries