generate bit