rewrote model method to scope