improved formatting for output