update grids