optimizations worked