correct way to define scopes