corrections to 2D PCA module