mixed optimizations (late)