introduced threshold setting