added sumArray