massive improvement in performance. devectorized code