add avx to all functions