using nested scopes