[algorithms][kashish] adding option of discarding filter