modified print_stats, included mem access