reformat output.