starts working on main file