converting uint8 to int