debugged SoftMaxTree:type()