removing final duplicate id