converted hex to unsigned to resolve compile warning