pretty printer for grids