bug and nan handling
pca works!