improved output formatting

Changed the output to be on the same line.