modified serial output formatting