new scripts using pca analysis