updated the grid system