inverted the gate output bits.
I did this because the hardware that I'm using has inverted outputs. So the two bit inversions will cancel each other, resulting in the original data being present at the output upon output update.