add types to lambdas