output statistics to file