refactored blas module for ints