prepare for stats