add 2 variables which handle auto-scaling process.
modify both pca source code.