fix bug in threshold check, increase threshold