cleaning up btree