more correct threshold