refactoring grids