added a model method