adding patterns