lambda to configure global