connect bin-tree and record as index