finish save index to object