patched PCA added