output reformat