returning the model as part of the save function