added parameters to filter.py