updated grid class