clean up format output