model and inference are updated