made some modes to the index file