added grid assignment