delete duplicates class