tree: rebuild