discrete metrics