made code in pcaplot3d easier to maintain by creating .pcaplot3d