changed xmtomf to set unexisted points