updating grids