working with model method