grid optimizations