remove X part from main file