text output formatting