change packet to main