output formatting cleanup