sum and unwind