add casts to unsigned char.