added threshold class