add criteria to model