lambda control added to main