little fixes.  replaced anonymous functions with lambdas.