final attempt at bnb switching to greedy