simplfy the attr_enc enc.