replaced fgmetric to cm_metric including import