moved btree to use cow