adding a total