removed packet casting