minor output/debug optimization