impliment the search filter