improved output printing formatting