refactor collection of cells by row, column, box