renaming and linking the files