added grid print