corrected some lambdas