minor fix on threshold