update main file