updated name of function to compute grand total