add core & finish index