improve output formatting