save indexes method added