new search function added + example