update the port