moved is_sum