simplify encodings