updated the grid