various fixes
change in threshold