added PCA in time method