removing duplicate ids