minor fixes with output