improving mrf distance functions