updating filter.py to only consider full entries