for new FlowStatsAll function