public ArrayList<jade.tree.Tree> go(){
		for(int i=0;i<intrees.size();i++){ 
			for(int j=0;j<names.size();j++){
				if(intrees.get(i).getExternalNode(names.get(j)) == null){
					System.out.println("name: "+names.get(j)+" not in tree. exiting....");
					System.exit(0);
				}
			/*
			 * added for nodes whose parents are the root
			 * when that happens
			 * just get the nodes other than the one you are trying to root
			 */
				if (intrees.get(i).getExternalNode(names.get(j)).getParent().isTheRoot()){
					if(intrees.get(i).getRoot().getChildCount()>2){
						intrees.get(i).getRoot().removeChild(intrees.get(i).getExternalNode(names.get(j)));
						intrees.get(i).processRoot();
					}else{
						TreeReader tr = new TreeReader();
						String ts = "";
						for (int k = 0; k < intrees.get(i).getRoot().getChildCount(); k++) {
							if (intrees.get(i).getRoot().getChild(k) != intrees.get(i).getExternalNode(names.get(j))) {
								ts = intrees.get(i).getRoot().getChild(k).getNewick(true)+";";
							}
						}
						tr.setTree(ts);
						intrees.set(i, tr.readTree());
					}
				}
				/*
				 * end added
				 */
				else{
					intrees.get(i).pruneExternalNode(intrees.get(i).getExternalNode(names.get(j)));
				}
			}
		}
		return intrees;
	}