sum is nil bug