merge_trees almost working