bitwise encoding