old_pool_sum should be marked as const