update  main file