reformat the output of matches set.