precedence merge encodings