Finished the first remove duplicate