make the code more flexible and statistic all the 'FILTER' field