fixed nested lambdas