little change to pdistC, to make it closer to pdistR