using unsigned char instead of BYTE