modified main file