replace binary format with hex;