guard for lapack