thompsonlike with lambdas