finish index