setting up the grid system