fixed remove duplicates