moved collection to model