removed all for loops, now uses all cblas