add doc and update tree