add the ids for update