cleaning of the model