aggregation stuff for hashcode frequency distributions