corrected btree initialization