improvement on threshold