refactored to include filterDict property