added support for hexadecimal numbers