dirty search functionality