methods for bitwise operations