change packet to list