fix for threshold cut-off