bitwise test fix attempt