consider the case when packet.id is 0