changed type of FILTER_PATTERNS