bit manipulation check