update model and parameters inference