removes scopes