by using a controlled threshold