updating the grid system