refactor AdFilter