change type of port ID to unsigned short