further optimisation to packet data structure