refactoring the way the rows in the grid are represented