updated index method