remove old version of main file