added doc to the model hook