finished PCA. still need to check if it is working, though