edited the index file destroy