adding assignment to model