adding scope to model