output formatting fix