added PCA regression code