remove unnecessary bit-flipping