bit_minipulation and expand