added support for hex