removeDuplicates works