added broken search function