change ping pong packet constructure code