distance done, lda and pca