writing bitwise operation part.