added functionality to search
-