auto the lambdas, removing the dependency on functional and improving readability.