refactored filterWhere().