back to previous version of metric.py using function format_coords