moved weighted functions to SSE4