update index file.