adapted to blas changes