getting the total to work