if condition shifted to model method