establishes grid system