swapping out lambdas