update output tree