updated index and base