changes for threshold