added the callback method to the model