changed funsusbsetrecursivebnb function