simplify the bitswitch