added grandtotal assignment