moved initialize stuff of collection and model into constructor method