changed output to be on a single line