use transform to get principal components