split all fragments and removed conditional before loop.