adding BPtree