passing the main file