add contexts to patterns