updating indices initialization