total should be an int