calculation (+ instead of xor)