update model and statistic