assign port variable