format and reoder masterinfo