update index file