@Override
	public void collectStats(SegmentEventRecoder recorder, StringBuilder builder) {
		List<InfinteMutation> mutations=recorder.getMutationsSorted();
		//builder.append("//\n");//this is a start sim output delimiter... so its not for here..
		if (recorder.isTrackTrees())
			recorder.treeStrings(builder);
		if(isLoption()){
			double[] treeL=recorder.getTreeLengthDataAt(.5);
			builder.append("time:\t").append(Util.defaultFormat.format(treeL[0])).append('\t').append(Util.defaultFormat.format(treeL[1])).append('\n');
		}
		builder.append("segsites: " + mutations.size() + "\n");
		if (mutations.isEmpty() || !printSegSites) {
			builder.append('\n');
			return;
		}
		builder.append("positions: ");
		for (int m = 0; m < mutations.size(); m++) {
			InfinteMutation mutation = mutations.get(m);
			builder.append(Util.defaultFormat.format(mutation.position));
			builder.append(' ');

		}
		builder.append('\n');
		
		int noLeaves = mutations.get(0).leafSet.size();
		for (int i = 0; i < noLeaves; i++) {
			for (int m = 0; m < mutations.size(); m++) {
				InfinteMutation mutation = mutations.get(m);
				builder.append(mutation.tranlasteAtSample(i));
			}
			builder.append('\n');

		}
		builder.append('\n');
		
	}