added weights to the PCA in transform.py