make code that doint pca on linking data set