remove main_id for remap