reorganize packet type