merge overlap in patterns