refactoring grids, expanind on the idea of using rows