error in duplicates removed