configuring thresholds