remove unneeded ids