changing search filter logic