added grid option