another bug in hex conversion
simplified dual arithmetic op