run decision-tree function