no need for globalMetric var.