moved filtering logic to entry.py and renamed it filter.py