changed the way that I do the rank/sort and plots.