format wmt code