renaming span to grid_size