renamed packet to Packet