Update port index method