update port index