moved beq is_sum under summarize