update the decision tree