use lambda in created scopes