fixed typo with threshold