threshold model working