fixed the function naming issue for and or xor