powers and xor added