removed commented out linalg.cholesky lines