isNaN checking on set
setting to threshold