remove extra inputPortAvailable check