little modification in lambdas