implemented statistic saving