added struct for frag