broken search function