refactor 'model.save'