wiring up decision tree