working on btree