add the set_matched_idxs_inner()