more scopes & first function test