adding code for pca_whitening