index method modified