clean up output format