generate fragment-head and fragment-body