creates grid system