optimizations & ball