debug step for pca_likelihood