overall optimizations