adding pkt len in the end of frame elem