add total method