working with the grid