edit the main file