added small function for search