configure threshold