remove duplicate ids