refactoring grid