using lambdas and auto