added decleration scopes