check for cholesky