finish index file