I modified to use `next_id_`