improved formatting of output