rename AverageType to RecordType