finish case index