added new searchFuntion