added sum of array