add exit and modif in main