modify port-queue frome array to pointer