including principle component analysis in scripts