rewrite statistic table