added total method