modify file name and directory name