replace grid with block grid