tweak to set output to eliminate trailing return