updates to metricType to make it more efficient.