Modify index method