isolating grid generation