abstract grid structure