fixing main file