make check of distance matrix more liberal