deleting redundant files and replacing one