deleting the duplications