added grid sample