polishing
added simd for edge cases