more pca updates to the code