change scope with lambda