simplified bitwise operations