deleting redundant files and renaming of the ddirectory