merge with tree