added grid delegate