put ports as parameter