add compound pattern