add lambda to scope