external sum for ints