reworked decision tree to use new building stack