modify the set_matched_idxs_inner(): single process