change method to branch and bound