improved output printing