replace $t with grid.