initializing model