merge data with tree script