use range insertion when node is root
add dist