adding the length of the packet