implemented persistent grid.