added grid.shape