fixing threshold