add toggleBit method