Changes sum to var