del index and file.write new