clened up the main file