pass the model explicitly