cleaning the model