add array elements individually