resolve the model's variable scope