sum array finished