added subtree to math