updated grid variables