fix for hexadecimal method