debug pca with svd and make it work