FILTERS: remove duplicate entries
fix 2 cosmetic issues found by PyCharm