adaptation to changes in pattern matching