delete the old files and modify some files