working search

tested locally