doing the model