adding threshold filter