fixed lambda scope