fixing port declarations