use lexical order to define master node for distem