changed definition for the term PATTERN