add function of statistic total flow