minor fixes to output