faster hierarchy reconstruction