made getCoordVar an S3 function for pPCA and pPCAcond