add lambda function support