handled empty search terms case