added minimum threshold range parameter