updated AVX2 code