updates port number