this is faulting on the packet function