changed error code to hex format