updating main file