add PATTERN_END_MATCHING