reformat print output