added second fillselectfunction to model