fix scope of model