cleanup to TreeMap.