major pitfall I was iterating over the map of sample names.  If they were not sorted properly the samples were out of order in grouping