and how do you generate the stats