modify error code to hex value