updating port num