changed module to XOR and adding initialization for JIT