changing return type of formatMetric to List<>