added thresh input to examples