search filter function implemented