update tree demo