complete sum_double