Remove the repeats in task4