added rotate-pca in main function