editing out duplications