implemented filtered search