initialize port variable