added statistic generation