reworked bit flip, 1 bit at a time.