sum_rec