working on metric contraction