working out scopes