updating index file