added update, fix statistic