cleanup print_stats