reformat the output