cleanup some lambdas.