simplify xer encoding