added the threshold filter