adding thresh