trying to get distance matrix working