prepare statistic scaffolding.