removed unnecessary lines in filter.py