make the function available even w/o lapack
make function protected