add And and Or patterns