add packet structure