put blas calls into loops
removed unused code