fixed stats, correctly written csv