switch uint8 to boolean