messing with wdist matrix