finish dinamic index