updates index file