persist the model