more efficient use of sse2 instructions