changing around distance matrix, now its all atoms instead of just Si