renamed function, because it can sum-out more than one var now