output formatting improvement