update b tree