adding definition for total