use pack algorithm to do a good version of what the messy stats were