output optimizations (from yesterday)