added output formatting