merge fragments