implemented recursive search for params/lambdas in primops