with threshold