merged optimizations