added sumofarray