avoid rebuilding postorder all the time