update lambdas in doc to the new syntax