got lambdas and dos working