update btreeset code