added total var