complete OIR ,but only open file in main