delete duplications in the entity list