for working the patterns.