generate cleaner decision tree
inline enumIndex access