add grids in prime space