was deleting the data packet in the wrong place