fixed lambda function retrieval