optimizations made