added statistic output