handles empty search