update is made by the index method