seperate main from its fregments