reformat the search output.